package create.factoryPattern;


import org.junit.Ignore;
import org.junit.Test;

/**
 * Created by hmily on 2017/9/6.
 */
public class TestMain {

    //简单工程模式
    @Test
    @Ignore
    public void testSimpleFactory(){
       new simpleFactory().getProduct("rice").eat();
       new simpleFactory().getProduct("beef").eat();
    }

    //工程方法模式
    @Test
    @Ignore
    public void testMultiFactory(){
        new multiFactory().eatRice().eat();
        new multiFactory().eatBeef().eat();
    }

    //静态工程模式，工厂内方法为静态方法


}
